<?php namespace Summer\Shop\Models;

use Model;
use Winter\Storm\Database\Traits\Sortable;

/**
 * Model
 */
class BrandModel extends Model
{
    use \Winter\Storm\Database\Traits\Validation;
    use Sortable;

    /**
     * @var string The database table used by the model.
     */
    public $table = 'summer_shop_brands';

    /**
     * @var array Validation rules
     */
    public $rules = [
        'name' => 'required|between:2,255',
        'cover' => 'required',
    ];
    public $attachOne = [
        'cover' => 'System\Models\File'
    ];
}
